package com.niiwoo.civet.user.dao.mapper;

import com.niiwoo.civet.user.enums.UserPersonalEnum;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

public interface UserPersonalInfoMapperExt extends UserPersonalInfoMapper {
    /**
     * @param userId
     * @return
     */
    long countByUserId(@Param("userId") String userId);

    /**
     * 修改学历信息
     * @param userId
     * @param userEduLevelEnum
     * @param educationAuthStatusEnum
     * @param educationAuthTime
     * @return
     */
    int updateEducationInfo(
            @Param("userId") String userId,
            @Param("userEduLevelEnum") UserPersonalEnum.UserEduLevelEnum userEduLevelEnum,
            @Param("educationAuthStatusEnum") UserPersonalEnum.EducationAuthStatusEnum educationAuthStatusEnum,
            @Param("educationAuthTime") Date educationAuthTime);
}